import http from '@/utils/request'

//用户登录
export const loginByJson = (data) => {
  return http.post('/u/loginByJson',data,{})
}
//图形验证码
export const captchaImage = (params): Promise<ArrayBuffer> => {
  return http.get('/captcha/image',{params, responseType:'arraybuffer' })
}
//登录动态验证码
export const sendRegisterOrLoginCaptcha = (params): Promise<any> => {
  return http.get('/captcha/sendRegisterOrLoginCaptcha',{params})
}
export const loginByMobile = (data): Promise<any> => {
  return http.post('/loginByMobile',data,{})
}
